from enum import Enum

from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from docx.shared import RGBColor, Inches
from datareport.api.annotation.Style import Style


class ParagraphStyleEnum(Enum):
    LEVEL_ONE = Style(alignment=WD_PARAGRAPH_ALIGNMENT.LEFT,space_after=2,space_before=2,
                      first_line_indent=Inches(36 / 72), font_name='宋体', font_size=14,
                      font_color=RGBColor(0, 0, 0), font_bold=True)
    """一级标题"""

    LEVEL_TWO = Style(alignment=WD_PARAGRAPH_ALIGNMENT.LEFT,
                      first_line_indent=Inches(40 / 72), font_name='宋体', font_size=10,
                      font_color=RGBColor(0, 0, 0), font_bold=True)
    """二级标题"""

    LEVEL_THREE = Style(alignment=WD_PARAGRAPH_ALIGNMENT.LEFT,
                        first_line_indent=Inches(36 / 72), font_name='宋体', font_size=10,
                        font_color=RGBColor(0, 0, 0))
    """三级标题"""

    FOOT_NOTE = Style(alignment=WD_PARAGRAPH_ALIGNMENT.LEFT,
                      first_line_indent=Inches(5 / 72), font_name='宋体', font_size=8,
                      font_color=RGBColor(0, 0, 0))
    """脚底注释"""
